﻿using System.Collections.Generic;

namespace UFrame
{
    /// <summary>
    /// 重构新手引导
    /// </summary>
    public sealed class GuideMa : Singleton<GuideMa>
    {
        private GuideMa()
        {
        }

        public GuideItemGroup curGroup;
        public GuideItem curGuide;
        public int majorStep = 0;
        public int smallStep = 0;


        public GuideItem GetCur(int index)
        {
            return curGroup.stepList[index];
        }


        public void RequestRecordGuideStep(int majorStep)
        {

        }
    }

    /// <summary>
    /// 一个完整的新手引导
    /// </summary>
    public class GuideItemGroup
    {
        public List<GuideItem> stepList = new List<GuideItem>();

        public int Count
        {
            get { return stepList.Count; }
        }

        public GuideItemGroup(List<GuideItem> list)
        {
            stepList = list;
        }
    }

    /// <summary>
    /// 每一步
    /// </summary>
    public class GuideItem
    {
        public int id;
        public int pressType;
        public float size;
        public float findControlInterval;
        public float delayTime;
        public string des;

        /// <summary>
        /// 详细提示
        /// </summary>
        public string detail;

        public string textDir;
        public string detailPos;
        public int triggerType;
        public int triggerValue;
        public int majorStep;
        public int smallStep;
        public string uiAddress;
        public string uiArgs;
        public string remainUI;
        public string hideUI;
        public string specialUI;
        public string offsetControl;
        public int eventId;

    }
}